import pytz

# 获取所有时区的名称
all_timezones = pytz.all_timezones

# 提取每个时区的标志城市
timezone_cities = []

for tz in all_timezones:
    # 分割时区名称，提取城市部分
    parts = tz.split("/")
    if len(parts) > 1:
        city = parts[-1]
        # 处理特殊情况，如 "Etc/GMT+1" 或 "US/Pacific-New"
        if "_" in city:
            city = city.replace("_", " ")
        elif city.startswith("GMT"):
            city = f"GMT {city[3:]}"
        timezone_cities.append((tz, city))
    else:
        timezone_cities.append((tz, tz))

# 打印结果
for tz, city in timezone_cities:
    print(f"{tz}: {city}")
